Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verifier: verify platforms of the build result #4908

Merged
merged 1 commit into from
May 31, 2024

Conversation

tonistiigi
Copy link
Member

Check that the result returned from the frontend
matches the user request conventions and show a
warning if it doesn't.

I'll be following up to this with verification on image metadata (if image is exported) as well. Currently, in some cases image platform gets reset even if using FROM --platform and a new metadata field would need to be passed from Dockerfile, so leaving this to future changes.

Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't look at all changes yet but found some typo

exporter/verifier/platforms.go Outdated Show resolved Hide resolved
client/client_test.go Outdated Show resolved Hide resolved
Check that the result returned from the frontend
matches the user request conventions and show a
warning if it doesn't.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good but I'm confused to repro similar to one in integration tests. Is there a thread or issue about this?

@tonistiigi
Copy link
Member Author

@crazy-max This protects against frontend (or client gateway callback) not handling the platform property correctly as buildkit exporters expect.

@tonistiigi tonistiigi merged commit c574c58 into moby:master May 31, 2024
76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants